package com.dldata.devtools30.repository.sysform;

import com.dldata.devtools30.entity.DevtFormMetadataEntity;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DevtFormMetadataDao extends com.dldata.devtools30.repository.BaseRepository<DevtFormMetadataEntity,String>, JpaSpecificationExecutor<DevtFormMetadataEntity> {
    
    @Query("select f from DevtFormMetadataEntity f where  f.templeid = ?1 ")
    public List<DevtFormMetadataEntity> getDataByTempleid(String templeid);
    
    @Query("select f from DevtFormMetadataEntity f ")
    public List<DevtFormMetadataEntity> getAll();
}
